package com.j2ee.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.j2ee.dao.PersonDao;
import com.j2ee.service.PersonService;

@Service("personService")
public class PersonServiceImpl implements PersonService {
	
	@Resource(name="personDao")
	private PersonDao personDao ;


	@Override
	public void savePerson(){
		int a = 1 ;
		if(a == 0) {
			throw new RuntimeException("service层异常信息") ;
		}
		personDao.savePerson() ;
	}

}
